package main;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import main.clockworks.Spider;

public class GameEngine {

	private JFrame frame;
	
	
	public GameEngine(Spider model) {
		
		frame = new JFrame("Wallgame");
		frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		frame.add(new GameInfo(model),BorderLayout.NORTH);
		frame.add(new GamePanel(model), BorderLayout.CENTER);
		
		frame.pack();
		frame.setVisible(true);
	}
	
	
	public void nextLevel() {
		
		
	}

	
	public static void main(String[] args) {
		Spider model = new Spider();
		new GameEngine(model);
	}
}
